import tf from 'then-fs'

async function getData() {
    const str1 = await tf.readFile('./10-data.json', 'utf8')
    return JSON.parse(str1)
}

getData().then(res => {
    console.log(res);
})